<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Application hit Vs. Page B Hit</title>
</head>
<body>
<%
	Integer appHits = (Integer) application.getAttribute("appHits");
	if (appHits == null || appHits == 0) {
		appHits = 1;
	} else {
		appHits += 1;
	}
	application.setAttribute("appHits", appHits);

	Integer pageHits = (Integer) pageContext.getAttribute("");
	if (pageHits == null || pageHits == 0) {
		pageHits = 1;
	} else {
		pageHits += 1;
	}
	pageContext.setAttribute("pageHits", pageHits);
%>
<ul>
<li><p>
		<b>Application hit:</b>
		<%= appHits%>
	</p></li>
<li><p>
		<b>Page A hit:</b>
		<%= pageHits%>
	</p></li>
</ul>
</body>
</html>